source create_project.tcl
open_project $project_dir/$project_name

set_param general.maxThreads $jobs
set_property STEPS.SYNTH_DESIGN.ARGS.FSM_EXTRACTION off [get_runs synth_1]

launch_runs synth_1 -jobs $jobs
wait_on_run synth_1

if {$generate_timng_report != ""} {
  puts "Creating timing report for Synthesis..."
  open_run synth_1 -name synth_1
  report_timing_summary -delay_type min_max -report_unconstrained -check_timing_verbose -max_paths 10 -input_pins -routable_nets -quiet -name timing_1 -file ${top}/timing_report_synth.txt
  close_design
}

puts "Synthesis done!"

